package top.hepingan.java.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.hepingan.java.entity.Dish;
import top.hepingan.java.mapper.DishMapper;
import top.hepingan.java.service.DishService;

@Service
@RequiredArgsConstructor
@Slf4j
public class DishServiceImpl extends ServiceImpl<DishMapper, Dish> implements DishService {

    private final DishMapper dishMapper;
    @Override
    public void updateDish(Dish dish) {
        dishMapper.updateById(dish);
    }
}
